
//
//  HJNavigationController.m
//  12期传智微博HJ
//
//  Created by mac on 15-1-31.
//  Copyright (c) 2015年 jun. All rights reserved.
//

#import "HJNavigationController.h"

@implementation HJNavigationController
//当类第一次加载的时候调用
+ (void)initialize
{
    //取出导航条item的外观对象
    UIBarButtonItem *item = [UIBarButtonItem appearance];
    //设置默认状态的颜色
    NSMutableDictionary *md = [NSMutableDictionary dictionary];
    md[NSForegroundColorAttributeName] = [UIColor orangeColor];
    [item setTitleTextAttributes:md forState:UIControlStateNormal];
    
    //设置高亮状态的文字颜色
    NSMutableDictionary *hd = [NSMutableDictionary dictionary];
    hd[NSForegroundColorAttributeName] = [UIColor purpleColor];
    [item setTitleTextAttributes:hd forState:UIControlStateHighlighted];
}
@end
